export const func = (value: number) => ({ type: 'X', value }) as const;

export const func = (value: number) => ({ type: 'X', value });
export const foo = () => ({
  bar: true,
});
export const bar = () => 1;